module.exports={
    login(data){
        return request({
            url: `/auth/login`,
            method: 'post',
            data: data
        });
    },
    socialLogin(data){
        return request({
            url: `/auth//binding/${data.source}/callback`,
            method: 'post',
            params: data
        });
    },
    logout(){
        return request({
            url: `/auth/logout`,
            headers: {},
            method: 'get'
        });
    }
}
